package com.city.service.city.impl;

import com.city.domain.city.CityCopnotePerson;
import com.city.repository.city.CityCopnotePersonRepository;
import com.city.service.city.CityCopnotePersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @deprecation: 民情日记被访人员记录
 * @dmail: 398521613@qq.com
 * @author: L-H
 * @date: 2018-07-18 13:14
 */
@Service
public class CityCopnotePersonServiceImpl implements CityCopnotePersonService {

    @Autowired
    private CityCopnotePersonRepository copnotePersonRepository;

    @Override
    public List<CityCopnotePerson> getTime(String time) {
        return copnotePersonRepository.getTime(time);
    }
    @Override
    public void save(CityCopnotePerson person){
        copnotePersonRepository.save(person);
    }

    @Override
    public CityCopnotePerson findByCopnoteId(int id) {
        return copnotePersonRepository.findByCopnoteId(id);
    }

    @Override
    public List<CityCopnotePerson> findAllById(Integer id) {
        return copnotePersonRepository.findAllById(id);
    }
}
